rechats(taiyun)

点线图

点图ePoints(cars)

线图eLine(cars$speed, type=‘line’)

条形图垂直eBar(cars$speed)

条形水平eLine(cars, horiz=TRUE)

堆积条形图 eBar(cars, stack=T)

饼图

饼图ePie(x,reset_radius = c(0, 100))

环饼图ePie(x,reset_radius = c(50, 100))

玫瑰图1ePie(x,type=‘rose’,roseType = ‘radias/area’)

玫瑰图2ePie(x,type=‘rose’,roseType = ‘area’)

高级图形

漏斗图 eFunnel(x)

桑基图 eSankey(dat)

echarts4r

1

线图和面积图

柱形图和阶梯图

散点图

2

光晕散点图

极坐标图

径向图

3

漏斗图

旭日图

日历图

仪表图

canvasXpress

1

气泡云图

韦恩图

和弦图

流程图

流程图diagramer

grViz

语法

1.框架 grViz(" digraph boxes_and_circles {流程图语法 } ")
2.设置节点形状:node[shape=box/oval/cicle/diamond/egg/square/triangle/point] 节点1;节点2;
3.流程图连接:一对一 A->1 一对多 A -> {B C}
4.线中文字:a->b[label=线中文字] 5.CSS样式 6.官网连接

流程图

timevis

类型

CSS

networkD3

关系图

visNetwork

语法

1.节点id:nodes <- data.frame(id = 1:3,label=c(‘名称1’,‘名称2’,‘名称3’),shape=‘circle/square’)
2.流程对应关系: edges <- data.frame(
from = c(1,2),
线中标识:label=c(‘a’,‘b’),
to = c(1,3),
value=c(100,200),
标题:title =c(‘title1’,‘title2’) )
3.绘制流程:visNetwork(nodes, edges, width = “100%”,title=‘this is a title’)
4.节点用图片:nodes<-data.frame(id=1:3,shape=‘image’,image=c(‘地址1’,‘地址2’,‘地址3’))

流程示例

交互表格DT

1.调用:library(DT) datatable(cars) 2.网页中修改数据:datatable(cars, editable = ‘cell’) 3.隐藏行名称:datatable(head(mtcars), rownames = FALSE) 4.设置列名称:datatable(head(iris), colnames = c(‘Here’, ‘Are’, ‘Some’, ‘New’, ‘Names’)) 5.图表标题:datatable( head(iris), caption = ‘Table 1: This is a simple caption for the table.’ ) 6.筛选器:datatable(cars, filter = ‘top/bottom’)